package com.chen.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Title:
 * @Description: to do
 * @Author: chenjiwei
 * @Date: 2020-10-05 8:02
 * @Version: 1.0.0
 */
@Controller
public class PageController {
    @RequestMapping(value="/{page}", method=RequestMethod.GET)
    public String page(@PathVariable String page){
        System.out.println(page);
        return "/"+page;
    }
}
